﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace ICSharpCode.WinFormsUI.Controls
{
    public partial class NMenuStrip : System.Windows .Forms.MenuStrip
    {
        string innerText = string.Empty;
        StringFormat fontStringFormat = new StringFormat();

        public NMenuStrip()
        {
            InitializeComponent();
            fontStringFormat.Alignment = StringAlignment.Far;
            fontStringFormat.LineAlignment = StringAlignment.Center;
            string _version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(3);
            innerText = "v : " + _version + "";
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            //System.Drawing.Graphics graphic = e.Graphics;
            //LinearGradientBrush linerbru = new LinearGradientBrush(new Rectangle(0, 0, this.Width, (int)(this.Height * 1.5)), SystemColors.Control, SystemColors.Window, LinearGradientMode.Vertical);
            //graphic.FillRectangle(linerbru, this.ClientRectangle);          
            base.OnPaint(e);
        }

    }
}
